package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.AppPersonalCenter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppAboutMapper;
import com.ruoyi.system.domain.AppAbout;
import com.ruoyi.system.service.IAppAboutService;
import com.ruoyi.common.core.text.Convert;

/**
 * app说明Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
@Service
public class AppAboutServiceImpl implements IAppAboutService 
{
    @Autowired
    private AppAboutMapper appAboutMapper;

    /**
     * 查询app说明
     * 
     * @param id app说明ID
     * @return app说明
     */
    @Override
    public AppAbout selectAppAboutById(Long id)
    {
        return appAboutMapper.selectAppAboutById(id);
    }

    /**
     * 查询app说明列表
     * 
     * @param appAbout app说明
     * @return app说明
     */
    @Override
    public List<AppAbout> selectAppAboutList(AppAbout appAbout)
    {
        return appAboutMapper.selectAppAboutList(appAbout);
    }

    /**
     * 新增app说明
     * 
     * @param appAbout app说明
     * @return 结果
     */
    @Override
    public int insertAppAbout(AppAbout appAbout)
    {
        return appAboutMapper.insertAppAbout(appAbout);
    }

    /**
     * 修改app说明
     * 
     * @param appAbout app说明
     * @return 结果
     */
    @Override
    public int updateAppAbout(AppAbout appAbout)
    {
        return appAboutMapper.updateAppAbout(appAbout);
    }

    /**
     * 删除app说明对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAppAboutByIds(String ids)
    {
        return appAboutMapper.deleteAppAboutByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除app说明信息
     * 
     * @param id app说明ID
     * @return 结果
     */
    @Override
    public int deleteAppAboutById(Long id)
    {
        return appAboutMapper.deleteAppAboutById(id);
    }
}
